import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

// 存储公共数据仓库 
export default new Vuex.Store({
  state: {
    // 存储设备和工程信息 
    ed: {
      device_id: 0,
      engineer_id: 0
    }
  },
  getters: {
  },
  mutations: {
    SET_ED:(state,payload)=>{
      state.ed = payload
    }
  },
  actions: {
  },
  modules: {
  }
})
